package org.polyforms.repository.executor;

/**
 * A {@link Executor} that conditionally executes base on prefix matching of method name.
 * 
 * @author Kuisong Tong
 * @since 1.0
 */
public interface NameBasedExecutor extends Executor {
    /**
     * Get list of prefix which presents in method name which are executed by this executor.
     * 
     * @return a list of prefix of method name which is allowed to be executed this executor.
     */
    String[] getPrefixes();
}
